<?php

if(!function_exists('otherhtml2url')){
function otherhtml2url($dirname,$filename){
	$dirname=str_replace( '\\','/' ,$dirname);
    //$dirname=preg_replace( array("/\/+/"),array("/") ,$dirname);
    $_DOCUMENT_ROOT=preg_replace( array("/\\\\/","/\/+/"),array("/","/"),$_SERVER['DOCUMENT_ROOT']).'/';
    return str_replace($_DOCUMENT_ROOT,_get_site_url(),$dirname."/").$filename;
 
}}
?>